package com.zzz.filer;

import jakarta.servlet.*;

import java.io.IOException;
import java.util.List;

/*
 * @author zzr
 * @date: 2025/07/26  19:20
 * @description:
 */
public class LifeCycleFilter implements Filter {

    public LifeCycleFilter() {
        System.out.println("构造");
    }

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("初始化");
    }


    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("过滤方法");
    }

    @Override
    public void destroy() {
        System.out.println("销毁方法");
    }
}
